﻿using Iworld.Game.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Iworld.Game.Service.Client.Export
{
    /// <summary>
    /// 投注记录
    /// </summary>
    [DataContract]
    public class BettingRecordExport
    {
        public BettingRecordExport(Betting bt)
        {
            this.GameChapterNumber = bt.GameRound.GameChapter.ChapterNumber;
            this.GameRoundNumber = bt.GameRound.RoundNum;
            this.Spade = bt.Spade;
            this.Heart = bt.Heart;
            this.Club = bt.Club;
            this.Diamond = bt.Diamond;
            this.King = bt.King;
            this.Status = bt.Status;
            this.Bonus = bt.Bonus;
            this.CreatedTime = bt.CreatedTime;
        }

         [DataMember]
        public int GameChapterNumber { set; get; }

         [DataMember]
        public int GameRoundNumber { set; get; }
        /// <summary>
        /// 黑桃的投注量
        /// </summary>
        [DataMember]
        public double Spade { set; get; }
        /// <summary>
        /// 红桃的投注量
        /// </summary>
        [DataMember]
        public double Heart { set; get; }
        /// <summary>
        /// 梅花的投注量
        /// </summary>
        [DataMember]
        public double Club { set; get; }
        /// <summary>
        /// 方块的投注量
        /// </summary>
        [DataMember]
        public double Diamond { set; get; }
        /// <summary>
        /// 王的投注量
        /// </summary>
        [DataMember]
        public double King { set; get; }

        /// <summary>
        /// 当前状态
        /// </summary>
        [DataMember]
        public BettingStatus Status { get; set; }

        /// <summary>
        /// 中奖分数
        /// </summary>
        [DataMember]
        public double Bonus { get; set; }

        [DataMember]
        public DateTime CreatedTime { set; get; }

     
    }
}
